---
description: Ensures following best practices for i18n.
optionExamples:
  - '[true, "check-id"]'
  - '[true, "check-text"]'
  - '[true, "check-id", "check-text"]'
options:
  items:
    enum:
      - check-id
      - check-text
    type: string
  maxLength: 2
  minLength: 1
  type: array
optionsDescription: |-

  One (or both) of the following arguments must be provided:
  * `check-id` Makes sure i18n attributes have ID specified
  * `check-text` Makes sure there are no elements with text content but no i18n attribute
      
rationale: Makes the code more maintainable in i18n sense.
ruleName: template-i18n
type: maintainability
typescriptOnly: true
layout: rule
title: 'Rule: template-i18n'
optionsJSON: |-
  {
    "items": {
      "enum": [
        "check-id",
        "check-text"
      ],
      "type": "string"
    },
    "maxLength": 2,
    "minLength": 1,
    "type": "array"
  }
---